<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>  
<%@ page import="java.sql.Date, kr.cadis.clms.dao.*, kr.cadis.clms.model.*" %>    
<%
	Date thisDay = Date.valueOf(request.getParameter("thisDay"));
	String whatDay = request.getParameter("whatDay");
	
	Holyday holyday = new Holyday();
	holyday.setThisDay(thisDay);
	holyday.setWhatDay(whatDay);
	
	HolydayDao holydayDao = new HolydayDao();
	boolean bf = holydayDao.update(holyday);
	
	if(bf == true) {
		response.sendRedirect("List.jsp");	
	}
	else {		
%>
<script type="text/javascript">
<!--
		alert("휴일 정보를  DB 에 수정하는 데 오류가 있습니다.");
		window.location.href = "List.jsp";
//-->
</script>
<%		
	}
%>